package flow;

public class Replace {
    public static void main(String[] args) {
        String str="aabbccdd";
        System.out.println("String="+str);
        String replacestr=str.replace('a','b');
        System.out.println("new String="+replacestr);
        String s1=null;
        String s2="";
        //System.out.println("字符串s1的长度="+s1.length());
        System.out.println("字符串s2的长度="+s2.length());
        //System.out.println(str.length());
    }
}
